﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CRMWeb.Pages.AM
{
    public partial class ChangeSchDate : CRMWeb.Utilities.BasePage
    {
        string digitalKey = WebConfigurationManager.AppSettings["EziDebitDigitalKey"].ToString();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnChangedate_Click(object sender, EventArgs e)
        {
            CRMAdapter.PayByEzidebit.ChangeScheduledDates(digitalKey, txtCusRefE.Text, "", txtChangeDate.Text, txtPaymentRef.Text, txtChangeDate.Text, txtMnlPay.Text, "");
            ClearAll();
        }

        //Method to clear all fields
        public void ClearAll()
        {

            digitalKey = "";
            txtCusRefE.Text = "";
            txtChangeDate.Text = "";
            txtPaymentRef.Text = "";
            txtChangeDate.Text = "";
            txtMnlPay.Text = "";


        }
    }
}